package com.itheima.controller;

import com.itheima.pojo.Result;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import com.itheima.service.UserServiceB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserControllerTest {
    @Autowired
    private UserServiceB userService;

    @RequestMapping("/user6666")
    public Result user() {
        List<User> users = userService.operator();
        return Result.success(users);
    }
}
